package com.crm.dao;

import com.crm.model.User;

import java.util.List;

/**
 * @author <a href="mailto:huang0510@hotmail.com">HuangHuang</a>
 * @version $Id$
 */
public interface IUserDao {

    public void save(User staff);

    List<User> getUsers();

    public User getUserById(String id);

    public User getUserByCode(String code);

    public List getUserByGroup(String group);

    public User getUserByNameAndPwd(String name, String pwd);

    public String getMaxUserCode();

    /**
     * Delete a user.
     * 
     * @param u  User
     */
    void delete(User u);

    List getUsersExceptSomebody(String userCode);

}
